]> dgit.raspbian.org Git - gnome-shell.git/commit
switchMonitor: Fix initial selection on desktop
authorYao Wei (魏銘廷) <yao.wei@canonical.com>
Mon, 29 Aug 2022 08:45:05 +0000 (16:45 +0800)
committerYao Wei <mwei@lxde.org>
Wed, 31 Aug 2022 00:38:49 +0000 (00:38 +0000)
commit137c50b6dc7d8a6eec844d7e2baf8aabb3680a89
tree522def7e4331829f85c9ef29ecf2a173dd2a15d7
parent6c56de82ea82e476e17010f2d5e28674ab1217be
switchMonitor: Fix initial selection on desktop

Due to !2056 the monitor config is 2 instead of 4 on the desktop.
However, the constant `Meta.MonitorSwitchConfigType.UNKNOWN` is fixed to
4, and may cause the initial selection to be out of index thus fail to
display the switcher.  This replaces the above constant to the actual
length of the switcher items.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2451>
js/ui/switchMonitor.js